<td width="727"><table width="727" border="0" cellspacing="0" cellpadding="0">
                                <tr> 
                                  <td width="727" height="47" valign="top" background="img/bar_blue.jpg"><table width="727" border="0" cellspacing="0" cellpadding="0">
                                      <tr> 
                                        <td width="10" height="47">&nbsp;</td>
                                        <td width="23" height="47"><img src="img/bar_flblue.jpg" width="23" height="23"></td>
                                        <td width="10" height="47">&nbsp;</td>
                                        <td height="47" class="tahoma12W"><strong> 
                                          <?php echo $lang['CONTENT_TITLE_LOGIN']; ?></strong></td>
                                      </tr>
                                    </table></td>
                                </tr>
                                <tr> 
                                  <td width="727" height="6" valign="top"><img src="img/spec_blank.gif" width="10" height="7"></td>
                                </tr>
                                <tr> 
                                  <td width="727" height="878" valign="top" bgcolor="#99CC33"><table width="100%" border="0" cellspacing="0" cellpadding="0">
                                      <tr> 
                                        <td height="601" valign="top" bgcolor="F1F3EB"><table width="100%" height="878" border="0" cellpadding="0" cellspacing="0">
                                            <tr> 
												<td height="763" valign="top">
													<table width="100%" border="0" cellspacing="0" cellpadding="0">
		                                                  <tr> 
		                                                    <td width="10" height="10"></td>
		                                                    <td height="10"></td>
		                                                    <td width="10" height="10"></td>
		                                                  </tr>
		                                                  <tr> 
		                                                    <td width="10">&nbsp;</td>
		                                                    <td align="left" valign="top" class="arial12G66">
																	<?php
																	    if(isset($_POST['submit'])){
																		if($valid==false){
																				echo '
																				<table width=500 align=center border=0 cellspacing=0 cellpadding=0>
																				<tr>
																					<td>
																				<div style="margin-bottom:10px;font-family: tahoma; font-size: 11px;">';
																				echo '<p style="padding:0px; margin:0px; color:red;"><b>The following errors occured :</b></p>';
																				while (list($key,$value) = each($errors))
																				{
																					echo '<span style="padding:10px;color:red;">'.$value.'</span><br />';
																				}
																				echo '</div> </td></tr></table>';
																		}
																		if($fail==true){
																			echo'
																			<table width=500 align=center border=0 cellspacing=0 cellpadding=0>
																				
																				<tr>
																					<td><h4 style="font-size:12px;color:red;">
																							Error password or username!</h4>
																					</td>
																				</tr>
																			</table>
																			
																			';
																		}
																		}
																		
																	?>
																	<form action="" method="POST">	
																		<table width="500" align="center" border="0" cellspacing="0" cellpadding="0">
																			<tr>
																				<td width="20%" class="tahoma11G"><?php echo $lang['FORM_USERNAME']; ?></td>
																				<td width="1%"> : </td>
																				<td class="tahoma11G"><input type="text" name="username" value="" size="35" ></td>
																			</tr>
																			<tr>
																				<td colspan="3" style="height:5px"></td>
																			</tr>
																			<tr>
																				<td width="30%" class="tahoma11G"><?php echo $lang['FORM_PASSWORD']; ?></td>
																				<td width="5%"> : </td>
																				<td class="tahoma11G"><input type="password" name="password" value="" size="35" ></td>
																			</tr>
																			<tr>
																				<td colspan="3" style="height:5px"></td>
																			</tr>
																			<tr>
																				<td colspan="3" class="tahoma11G">
																					<button name="submit" type="submit" style="border: 0; background: transparent;float:right; margin-right:80px;
																						cursor:pointer;">
																					    <img src="img/btn_login.jpg" width="72" height="20"  alt="submit" />
																					</button>
																				</td>
																			</tr>
																			<tr>
																				<td colspan="3" style="height:5px"></td>
																			</tr>
																			<tr>
																				<td colspan="3" style="height:5px" align="left"><a href="fpassword.php" style="color:blue;">Lupa kata laluan anda? Klik sini</a></td>
																			</tr>
																		</table>
																	</form>
																
		                                                    </td>
		                                                    <td width="10">&nbsp;</td>
		                                                  </tr>
		                                                  <tr> 
														  
		                                                    <td width="10" height="10"></td>
		                                                    <td height="10"></td>
		                                                    <td width="10" height="10"></td>
		                                                  </tr>
													</table>
												</td>
												
                                            </tr>
                                            <tr> 
                                              <td height="115" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
                                                  <tr valign="top"> 
                                                    <td width="115" height="115"><img src="img/spec_ornamentLeft.jpg" width="115" height="115"></td>
                                                    <td height="115">&nbsp;</td>
                                                    <td width="115" height="115"><img src="img/spec_ornamentRight.jpg" width="115" height="115"></td>
                                                  </tr>
                                                </table></td>
												
                                            </tr>
                                          </table></td>
                                      </tr>
                                    </table></td>
                                </tr>
                              </table>